import { Indicator } from 'mint-ui';

export default (loading) => {
  if (loading) {
    return Indicator.open({
      text: '加载中...',
      spinnerType: 'fading-circle'
    });
  }
  Indicator.close();
}
